package rmi;

import java.rmi.Naming;

public class TestRmiClient {
	public static void main(String[] args) {
		for (int i = 0; i < 10; i++) {
			new Thread(new Runnable() {
				
				public void run() {
					try {
						StudentInterface service=	(StudentInterface) Naming.lookup("rmi://10.29.62.241:8080/studentService");
						System.out.println(service.getStudentName("zsw"));
						} catch (Exception e) {
							// TODO: handle exception
						}					
				}
			}).start();
		}
		
	}

}
